import request from '@/utils/request.js'

import {useTokenStore} from '@/stores/token.js'



export const activityListService = (params)=>{
    return  request.get('/admin/activity/listAll',{params:params})
}


export const activityAddService = (data)=>{
    return request.post('/admin/activity/add',data);

}



export const activityEditService = (data)=>{
    return  request.post('/admin/activity/edit',data)
}


export const activityDelService = (id)=>{
    return request.get('/admin/activity/del?id='+id)
}
export const activityPublishService = (id)=>{
    return request.get('/admin/activity/publish?id='+id)
}


export const activityRewardListService = (params)=>{
    return  request.get('/admin/activity/reward/list',{params:params})
}

export const activityResourceAddService = (data)=>{
    return request.post('/admin/activity/reward/add',data);

}

export const rewardDeleteService = (id)=>{
    return request.get('/admin/activity/reward/del?id='+id)
}


export const rewardEditService = (params)=>{
    return  request.post('/admin/activity/reward/edit',params)
}








